fontchooser: Make sure the tweak button is updated
authorMatthias Clasen <mclasen@redhat.com>
Sun, 20 Sep 2020 14:55:54 +0000 (10:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 20 Sep 2020 14:59:37 +0000 (10:59 -0400)
This was showing up as tweak buttons being visible
when they should not. The code probably relied on
widgets being hidden by default (as they were in
GTK3).

gtk/gtkfontchooserdialog.c

index 6181db6836b3201e85817076d963633809593abf..5c38db7fa8d2b1c2e23f988a1c072a0546054b52 100644 (file)
@@ -183,6 +183,8 @@ setup_tweak_button (GtkFontChooserDialog *dialog)
       gtk_header_bar_pack_end (GTK_HEADER_BAR (header), button);
 
       dialog->tweak_button = button;
+
+      update_tweak_button (dialog);
     }
 }